// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** 此处后端没有提供注释 POST /generateQuestion/delete */
export async function deleteGenerateQuestionDeprecated(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>('/generateQuestion/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /generateQuestion/get/${param0} */
export async function getGenerateQuestionVo(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getGenerateQuestionVOParams,
  options?: { [key: string]: any }
) {
  const { id: param0, ...queryParams } = params
  return request<API.BaseResponseListGenerateQuestionVO>(`/generateQuestion/get/${param0}`, {
    method: 'GET',
    params: { ...queryParams },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /generateQuestion/getGenerateQuestion */
export async function generateQuestion(
  body: API.AddGenerateQuestionRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListExercises>('/generateQuestion/getGenerateQuestion', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /generateQuestion/judge_question */
export async function judgeQuestion(
  body: API.JudgeGenerateQuestionRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListJudgeGenerateQuestionVO>('/generateQuestion/judge_question', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /generateQuestion/list/page/vo */
export async function listGenerateQuestionVoByPage(
  body: API.GenerateQuestionQueryDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageGenerateQuestionPageVO>('/generateQuestion/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
